package com.ffz.servicebase.exceptionhandler;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName : GuliException.java
 * @Description : //
 * @Author fengfazheng
 * @Date 2020-11-10 11:03
 * @Version : 1.0
 */
@Data
@AllArgsConstructor// 生成有参
@NoArgsConstructor// 生成无参
public class GuliException extends RuntimeException {

    private  Integer code;  // 状态码

    private String msg;// 异常信息

    @Override
    public String toString() {
        return "GuliException{" +
                "message=" + this.getMessage() +
                ", code=" + code +
                '}';
    }

}
